#ifndef _CURL_DOWNLOAD_H_
#define _CURL_DOWNLOAD_H_

#include "curlUtils.h"
#include <vector>


// 定义全局变量
namespace HNNetwork {
bool getDownloadSize(std::vector<UrlObeject*>& urlObjects,long &sum);
void downloadRange(int threadIdx,long offset, long blockSize, const char* url, std::ofstream& tempfile);
void downloadFile(UrlObeject* urlObj, long flowSize);
}//HNNetWork
#endif
